﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="func.aspx.cs" Inherits="AnyOffice.general.system.code.func" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>代码设置</title>
    <script Language="JavaScript">
function delete_code(code_id,code_flag,code_name)
{
 msg='确认要删除代码项 \''+code_name+'\' 么？';
 if(window.confirm(msg))
 {
  URL="delete.aspx?code_id=" + code_id +"&code_flag="+code_flag;
  location=URL;
 }
}
</script>
</head>
<body class="bodycolor" topMargin="5">
    <form id="form1" runat="server">
     <div class="main_div">
    <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="tab_ti">
        代码项设置
    </td>
  </tr>
</table>
<table class="TableBlock" align="center">
     <tr align="center">
      <td nowrap class="TableHeader" colspan="2">
        &nbsp;&nbsp;<asp:Literal ID="litCodeName" runat="server"></asp:Literal>&nbsp;&nbsp;
      </td>
     </tr>
     <tr>
      <td class="TableControl" align="center" colspan="2">
        <input type="button" value="增加代码项" class="bnt_Add" onclick="parent.func.location='new.aspx?code_flag=<%=ViewState["CodeNo"] %>';">
      </td>
     </tr>
        
        <asp:Repeater ID="rptCode" runat="server">
        <ItemTemplate>
        <tr class="TableData">
          <td nowrap>
            &nbsp;<b><%#Eval("CodeNo")%>&nbsp;&nbsp;<%#Eval("CodeName")%></b>&nbsp;
          </td>
          <td nowrap>&nbsp;
           <a href="edit.aspx?code_id=<%#Eval("CodeId")%>"> 编辑</a>&nbsp;&nbsp;
           <a href="javascript:delete_code('<%#Eval("CodeId")%>','<%#Eval("CodeFlag")%>','<%#Eval("CodeName")%>');"> 删除</a>&nbsp;&nbsp;
          </td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        </table>
        </div>
    </form>
</body>
</html>
